<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ include file="/commons/nocache.jspf" %>
<%@ taglib uri="/FCKeditor" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http：//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http：//www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/form.dwt" codeOutsideHTMLIsLocked="true" -->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<script type="text/javascript" src="${ctx}/scripts/datepicker/wpCalendar.js"></script>
<!-- InstanceBeginEditable name="doctitle" -->
<title>添加稿件</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="scripts" -->
<script type="text/javascript">
	function submitIt(obj){
		//委员
		<c:if test="${role.roleId == ROLE_COMMITTEE}">
			if(!validateStringNull("报送人", "bsUserName")){
			   return false;
			}
			if(!validateStringNull("标题", "theme")){
			   return false;
			}

		</c:if>
	 	document.form1.submit();
	}	
	function radioChangeAduitSuggest() {
		var value = getRadioCheckedValue("suggestAduitSuggest");
		if (value == "0") {
			//隐藏立案类型
			displayNone("suggest.type.display");
		} else {
			//展现立案类型
			displayBlock("suggest.type.display");
		}
	}
	function suggestIsGroupSelectChange(obj) {
		if (obj.value == "0") {
			displayNone("suggestUnionUserName");
		} else {
			displayBlock("suggestUnionUserName");
		}
	}
	function suggestAduitSuggestSelectChange(obj) {
		if (obj.value == "1") {
			displayBlock("suggestRegisterTypeSelect.display");
			displayBlock("suggestClassify.display");
		} else {
			displayNone("suggestRegisterTypeSelect.display");
			displayNone("suggestClassify.display");
		}
	}
</script>

<!-- InstanceEndEditable -->
</head>

<body>

<div id="main">
	<div class="zdsz" id="select1">
		<div class="tab">

<!-- InstanceBeginEditable name="tab" -->

<a href="${ctx}/suggest/suggest!index.action"><h3 class="sel" >添加稿件</h3></a>
<a href="${ctx}/suggest/suggest!list.action"><h3>稿件列表</h3></a>

<!-- InstanceEndEditable -->
		</div>
		<div class="zd_gut">
			<ul class="block">
				<li>
		
<!-- InstanceBeginEditable name="form" -->

<form name="form1" action="${ctx}/suggest/suggest!create.action" method="post"  enctype="multipart/form-data">
<table width="97%"  border="0" align="center" cellpadding="0" cellspacing="1" >
  <tr>
    <td width="11%" height="30" align="center" valign="middle" bgcolor="#DFEAF3"> 流水号：</td>
    <td width="15%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <input id="no" name="suggest.no" value="${suggest.no }" type="text" size="18" class="input01" maxlength="10" <c:if test="${role.roleId != ROLE_COMMITTEE}">readOnly </c:if>/>
    </td>
    <td width="11%" height="30" align="center" valign="middle" bgcolor="#DFEAF3"> 提交人：</td>
    <td width="15%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <input id="userName" name="suggest.userName" value="${suggest.userName }" type="text" size="18" class="input01" maxlength="10" readOnly />
    </td>
    <td height="26"  width="12%" align="center" valign="middle" bgcolor="#DFEAF3">提交日期：</td>
    <td width="15%"  align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
       <input id="date"  type="text" name="suggest.date"  readOnly    maxlength="200"  class="input01" readonly="readonly" value="<pro:serverDate format='yyyy-MM-dd'/>">
    </td>
  </tr>
  <tr>
    <td width="11%" height="30" align="center" valign="middle" bgcolor="#DFEAF3"> 反映人：</td>
    <td width="15%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <input id="no" name="suggest.fyUserName" value="${suggest.fyUserName }" type="text" size="18" class="input01" maxlength="10" <c:if test="${role.roleId != ROLE_COMMITTEE}">readOnly </c:if>/>
    </td>
    <td width="11%" height="30" align="center" valign="middle" bgcolor="#DFEAF3"> 身份：</td>
    <td width="15%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
    <c:if test="${role.roleId == ROLE_COMMITTEE}">
    	<pro:option selectName="suggest.sf" optionName="suggest.sf" value="${suggest.sf}"/>
    </c:if>
    <c:if test="${role.roleId != ROLE_COMMITTEE}">
    	<pro:optionValue optionName="suggest.sf" value="${suggest.sf}"/>
    	<input type="hidden" name="suggest.sf" value="${suggest.sf }"/>
    </c:if>
    </td>
    <td width="11%" height="30" align="center" valign="middle" bgcolor="#DFEAF3"> 人数：</td>
    <td width="15%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <input id="no" name="suggest.peopleNum" value="${suggest.peopleNum }" type="text" size="18" class="input01" maxlength="10" <c:if test="${role.roleId != ROLE_COMMITTEE}">readOnly </c:if>/>
    </td>
  </tr>
  <tr>
    <td width="11%" height="28" align="center" valign="middle" bgcolor="#DFEAF3">类别：</td>
    <td align="left" valign="middle" bgcolor="#FFFFFF">
    <c:if test="${role.roleId == ROLE_COMMITTEE}">
    	<pro:option selectName="suggest.classify" optionName="suggest.classify" value="${suggest.classify}"/>
    </c:if>
    <c:if test="${role.roleId != ROLE_COMMITTEE}">
    	<pro:optionValue optionName="suggest.classify" value="${suggest.classify}"/>
    	<input type="hidden" name="suggest.classify" value="${suggest.classify }"/>
    </c:if>
    </td>
    <td align="center" valign="middle" bgcolor="#DFEAF3">报送人：</td>
    <td align="left" valign="middle" bgcolor="#FFFFFF">
    <input id="bsUserName" name="suggest.bsUserName" value="${suggest.bsUserName }" type="text" size="18" class="input01" maxlength="10" <c:if test="${role.roleId != ROLE_COMMITTEE}">readOnly </c:if>/>
    </td>
    <td align="center" valign="middle" bgcolor="#DFEAF3"></td>
    <td align="left" valign="middle" bgcolor="#FFFFFF">
  </tr>
  <tr>
    <td width="11%" height="30" align="center" valign="middle" bgcolor="#DFEAF3">标　　题：</td>
    <td colspan="5" width="11%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <input id="theme" name="suggest.theme" value="${suggest.theme}" type="text" size="85" class="input01" maxlength="100" <c:if test="${role.roleId != ROLE_COMMITTEE}">readOnly style="color:gray;"</c:if>/>
    </td>
  </tr>
  <tr>
    <td height="30"   align="right" bgcolor="#DFEAF3">内　　容：</td>
    <td align="left" valign="middle" bgcolor="#FFFFFF" colspan="5">
    <FCK:editor id="suggest.content" basePath="${ctx}/fckeditor/" width="100%" height="300px" 
	    skinPath="${ctx}/fckeditor/editor/skins/office2003/"  toolbarSet="Default" >
	    ${suggest.content }
	</FCK:editor>
    </td>    
  </tr>
</table>
<!-- InstanceEndEditable -->
<font color="red"><div id="ERROR">${ERROR }</div></font>
<table  width="100" height="50" border="0" align="center" cellpadding="0" cellspacing="1" >
    <tr>
<!-- InstanceBeginEditable name="button" -->
      <td width="150" align="right"><input type="button"  onclick="submitIt(this);"  value="提交" class="btn"/></td>
      <td width="100" align="right"><input type="reset" value="重置" class="btn"/></td>
<!-- InstanceEndEditable --> 
	</tr>
</table>
</from>
</li>
		</ul>
	  </div>
	</div>
</div>
</body>
<!-- InstanceEnd --></html>
